package com.sport.user.service;

import com.sport.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.constraints.NotNull;

@Component
@FeignClient(value = "sport-meeting-setting")
@RequestMapping("/api/setting")
public interface ISettingFeignService {

    @GetMapping("/getPreInfo")
    ResponseResult getPreInfo(@RequestBody @NotNull String schoolTenementId);

    @GetMapping("/initSportMeeting")
    ResponseResult initSportMeeting(@RequestBody @NotNull String schoolTenementId);
}
